/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package comandaXM.classes.manteniment.auxiliar;

/**
 *
 * @author xmarti
 */
public class TipusIva {
       private int id;
       private String codi;
       private String nom;
       private int impost;
       private double rEquivalencia=0.0; 
       private boolean actiu; 
       
       public TipusIva(){
           
       }
       public TipusIva(int id, String codi, String nom, int impost,double rEquivalencia,  boolean actiu){
           this.id=id;
           this.codi=codi;
           this.nom=nom;
           this.impost=impost; 
           this.rEquivalencia=rEquivalencia; 
           this.actiu= actiu; 
       }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCodi() {
        return codi;
    }

    public void setCodi(String codi) {
        this.codi = codi;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public int getImpost() {
        return impost;
    }

    public void setImpost(int impost) {
        this.impost = impost;
    }

    public double getrEquivalencia() {
        return rEquivalencia;
    }

    public void setrEquivalencia(double rEquivalencia) {
        this.rEquivalencia = rEquivalencia;
    }

    public boolean isActiu() {
        return actiu;
    }

    public void setActiu(boolean actiu) {
        this.actiu = actiu;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + this.id;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TipusIva other = (TipusIva) obj;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }
       
    public String toString(){
        return this.nom; 
    }   
    
}
